/*
 * Created on May 23, 2004
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package schoolsource.model;

/**
 * @author Steven Steele
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class BucketTimeWrapper {

	private long lastAccessedTime = 0;
	private Container c = null;

	BucketTimeWrapper(Container newC) {
		this.c = newC;
		lastAccessedTime = System.currentTimeMillis();
	}

	long getLastAccessedTime() {
		return lastAccessedTime;
	}
	
	void reset() {
		lastAccessedTime = System.currentTimeMillis();
	}

	Container getValue() {
		reset();
		return c;
	}
}
